package com.cqndt.disaster.device.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import com.cqndt.disaster.device.vo.TabSensorVo;
import com.cqndt.disaster.device.domain.TabSensor;

@Mapper
public interface TabSensorMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TabSensor record);

    int insertSelective(TabSensor record);

    TabSensor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TabSensor record);

    int updateByPrimaryKey(TabSensor record);

    List<TabSensorVo> getSensorByMonitorNo(String monitorNo);

    Integer countSensorNum(Integer userId);

    int selectDSNo(@Param("deviceNo") String deviceNo,@Param("sensorNo") String sensorNo);

    String selectDeviceNoBySensorNo(@Param("sensorNo") String sensorNo);

    String selectMonitorNoBySensorNo(@Param("sensorNo") String sensorNo);
    
    List<TabSensorVo> getSensorByDeviceNo(String deviceNo);
    
    
    /**
     * @date 2020-11-26 
     * @param sensorNo 传感器编号
     * @param typeName 检测类型名称
     * @return 根据传感器编号与名称查询刻度列表
     **/
    List<TabSensorVo.Scale> findSensorScale(
    		@Param("sensorNo")String sensorNo,@Param("typeName")String typeName);
    
}